home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
proasm
/
rexx
/
dopus
/
asxassemble.dopus
< prev
next >
Wrap
Text File
|
1996-04-29
|
1KB
|
41 lines
/* Assemble selected files */
/* for Directory Opus 4, using ASX */
/* 16.06.93 by Daniel Weber */
OPTIONS RESULTS
dopusPort = ADDRESS() /* get port name of DOpus */
status 3 /* get #of active window */
win = result
status 13 win /* get actual selected drive */
path = result
getselectedfiles '+'
IF RC ~= 0 THEN EXIT(0)
files = result
DO WHILE files ~=''
PARSE VAR files txtfile '+' files
ADDRESS (''||dopusPort) /* show file name */
toptext 'Assembling 'path''txtfile
ADDRESS 'asx_rexx'
BegOfAssembly /* allocate a job */
port = result
IF port ~='' THEN DO
ADDRESS (''||port) /* ARexx weirdness */
Assemble path''txtfile /* assemble selected file */
PARSE VAR result . errors . warnings . optims optimbytes . codesize . workspace
ADDRESS (''||dopusPort)
toptext errors' Errors 'warnings' Warnings, assembled to 'codesize' bytes.'
ADDRESS (''||port) /* ARexx weirdness */
EndOfAssembly /* free job */
END
END
EXIT(0)